﻿@page "/testbaidumap"

<h3>百度地图 Baidu Map</h3>

<p>@message</p>

<BaiduMap Key="百度地图KEY" OnResult="@OnResult" />

@code {

    private string message;
    private BaiduLocation location;

    private Task OnResult(BaiduLocation geolocations)
    {
        location = geolocations;

        message = $"{location}";

        StateHasChanged();

        return Task.CompletedTask;
    }
}
